// pages/detail/detail.js
Page({


  data: {
   btn_color:"#fe5771",
   color:"#ccc",
   text:"想看",
   bac_col:"",
   font_col:"black",
   overflow:"hidden",
   height:"80",
   display:"unset",
   list:[
     {"src":"/pages/images/detail/aibier.jpg","name":"彼埃尔·...","man":"导演"},
     {"src":"/pages/images/detail/sam.jpg","name":"山姆·洛...","man":"Mr.Wolf"},
     {"src":"/pages/images/detail/qinhao.jpg","name":"秦昊","man":"大坏狼"},
     {"src":"/pages/images/detail/aoka.jpg","name":"奥卡菲娜","man":"Ms.Tarantula"},
     {"src":"/pages/images/detail/chuina.jpg","name":"锤娜丽莎","man":"美肚鲨"},
     {"src":"/pages/images/detail/andongni.jpg","name":"安东尼·...","man":"Ms.Piranha"},
    ],
  },

  want:function(){
    let color = this.data.color;
    if(color=="red"){
      this.setData({
        color: "#ccc",
        text: "想看",
        bac_col:"",
        font_col:"black",
      })
    }else{
      this.setData({
        color: "red",
        text: "已想看",
        bac_col:"rgb(250, 232, 182)",
        font_col:"orange",
      })
    }
  },
  checkboxChange(e) {
    let overflow = this.data.overflow;
    if(overflow=="hidden"){
      this.setData({
        overflow:"visible",
        display: "none",
        height:"240",
      })
    }else{
      this.setData({
        overflow:"hidden",
        display: "unset",
        height:"80",
      })
    }
  },
  jump(){
    wx.reLaunch({
      url: '/pages/cinema/cinema',
    })
  }


})